<div class="pageHeader">
	<form id="pagerForm" action="${ctx!}/admin/webConfig/list" onsubmit="return navTabSearch(this)" method="post">
		<input type="hidden" name="pageNum" value="${datas.pageNumber!}" />
		<input type="hidden" name="numPerPage" value="${datas.pageSize!}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>键：<input type="text" class="focus highlightText" name="webConfig.k" value="${webConfig.k!}" alt="键 向后模糊查找" /></td>
					<td>
						<select name="webConfig.is_system" >
							<option value="">系统配置</option>
							<option value="0"<#if webConfig.is_system?? && webConfig.is_system = '0'>selected="selected"</#if>>否</option>
							<option value="1"<#if webConfig.is_system?? && webConfig.is_system = '1'>selected="selected"</#if>>是</option>
						</select>
					</td>
					<td><div class="button"><div class="buttonContent"><button type="submit">查询</button></div></div></td>
				</tr>
			</table>
		</div>
	</form>
</div>

<div class="pageContent" style="padding:0px" >
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${ctx!}/admin/webConfig/toModifyPage" target="dialog" rel="modifyConfigDialog" title="新增配置" mask="false" width="520" height="280"><span>添加</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="${ctx!}/admin/webConfig/delete" target="selectedTodo" rel="ids" title="确认删除？"><span>批量删除</span></a></li>
		</ul>
	</div>
	<table class="table" layoutH="112">
		<thead>
			<tr>
				<th width="40" align="center"><input type="checkbox" class="checkboxCtrl" group="ids" /></th>
				<th width="40" align="center" >序号</th>
				<th width="150" align="left" >键</th>
				<th width="200" align="left" >值</th>
				<th width="350"  align="left" >描述</th>
				<th width="100" align="center" >创建时间</th>
				<th width="100" align="center" >更新时间</th>
				<th width="60" align="center" >系统配置</th>
				<th width="80" align="center" >操作</th>
			</tr>
		</thead>
		<tbody>
			<#list datas.list as webConfig>
			<tr target="sid_obj" rel="${webConfig.id!}" ondblclick="migr.baseMoudleDblick(this)">
				<td><input type="checkbox" name="ids" value="${webConfig.id}" /></td>
				<td>${webConfig_index + (datas.pageSize*(datas.pageNumber-1)) + 1}</td>
				<td>${webConfig.k!}</td>
				<td>${webConfig.val!}</td>
				<td>${webConfig.des!}</td>
				<td>${webConfig.create_time?string("yyyy-MM-dd")!}</td>
				<td><#if webConfig.update_time??>${webConfig.update_time?string("yyyy-MM-dd")!}</#if></td>
				<td><#if webConfig.is_system == '0'> <div>否</div> <#else> <div style="color:green">是</div> </#if></td>
				<td>
					&nbsp;
					<a class="btnEdit" href="${ctx!}/admin/webConfig/toModifyPage/${webConfig.id!}" target="dialog" title="编辑配置信息" rel="modifyConfigDialog" mask="true" width="520" height="280">编辑</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20"<#if datas.pageSize == 20> selected</#if>>20</option>
				<option value="50"<#if datas.pageSize == 50> selected</#if>>50</option>
				<option value="100"<#if datas.pageSize == 100> selected</#if>>100</option>
				<option value="200"<#if datas.pageSize == 200> selected</#if>>200</option>
			</select> <span>条，共<font style="color:red;font-weight:bold;">${datas.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${datas.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${datas.totalRow!}" numPerPage="${datas.pageSize!}" pageNumShown="10" currentPage="${datas.pageNumber!}"></div>
	</div>
</div>

